package com.example.webfluxtest.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import reactor.core.publisher.Mono;

/**
 * @description: HelloController
 * @author: Zhengwen li
 * @date: 2022-12-08
 * @version:1.0
 **/
@RestController
public class HelloController {

    @GetMapping("/hello")
    // ServerRequest serverRequest, ServerResponse serverResponse, ServerHttpRequest serverHttpRequest, ServerHttpResponse serverHttpResponse
    public Mono<String> Hello(){
        return Mono.just("hello");
    }

}
